package top.huxy.boot.model.dto;

import lombok.Data;
import top.huxy.boot.exception.RequestParamIllegalException;
import top.huxy.boot.util.StringUtils;

/**
 * @Classname DTOReplyReply
 * @Description DTOReplyReply
 * @Date 2021/9/12 17:30
 * @Created by huxy
 */
@Data
public class DTOReplyReply {
    private Integer cid;
    private Integer rid;
    private String content;

    public void test() {
        String temp;
        if ((temp = StringUtils.getEmptyParamName("cid,rid,content", cid, rid, content)) != null) {
            throw new RequestParamIllegalException("param [" + temp + "] is required !");
        }
    }
}
